<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('dbreward/reward/flexigrid') ?>',
                    colModel: [
                        {display: '<?= translate('DBREWARD_ROLEID') ?>', name: 'roleid', width: '100', process: formatSearch},
                        {display: '<?= translate('DBREWARD_ACTIVITYID') ?>', name: 'activeid', width: '300'},
                        {display: '<?= translate('DBREWARD_STATE') ?>', name: 'state', width: '150'},
                        {display: '<?= translate('DBREWARD_GMID') ?>', name: 'gmid', width: '150'},                       
                    ],
                    buttons: [
                        {name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},
//                        {name: 'name', displayname: "<?= translate('DBPLAYER_ROLE_NAME') ?> <input type='text' style='padding:1px;' value='yy' size='12' placeholder='<?= translate('PLASE_WRITE') ?>' name='name' op='='/>", bclass: 'add'},
                    ],
                    <!-- searchitems: [{display: '<?= translate('ATTRIBUTE_NAME') ?>', name: 'playerid'}],-->
                }));

            });
        </script>
    </body>
</html>